package com.boil.qz.safekavass.service;

import com.boil.qz.safekavass.dao.MybatisDao;
import com.boil.qz.safekavass.model.LearnDym;
import com.boil.qz.safekavass.pojo.LearnDymVo;
import com.boil.qz.safekavass.repository.LearnDymRepository;
import com.boil.util.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by ChenYong on 2017-04-17.
 * <br>
 * 学习动态 Service。
 */
@Service
public class LearnDymService extends JpaRepositoryService<LearnDym, Long> {
    /**
     * 注入 Mybatis Dao
     */
    @Autowired
    private MybatisDao mybatisDao;
    /**
     * 学习动态实体仓库
     */
    @Autowired
    private LearnDymRepository learnDymRepository;

    /**
     * 分页查询学习动态。
     *
     * @param page 分页实例
     */
    public void findInPage(Page<LearnDymVo> page) {
        mybatisDao.selectInPage("learnDymVoNs.findInPage", page);
    }
}